﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iSufeMVC4.SufeAPI
{
        #region 学生信息
        /// <summary>
        /// 请求Eams获取学生信息
        /// </summary>
        public class StudentInfo
        {
            /// <summary>
            /// 姓名
            /// </summary>
            public string StdName { get; set; }
            /// <summary>
            /// 学号
            /// </summary>
            public string StdCode { get; set; }
        }

        /// <summary>
        /// 请求Eams获取学生课表信息
        /// </summary>
        public class StudentCourseTable
        {
            public int CalendarId { get; set; }
            public int StdId { get; set; }
            /// <summary>
            /// 姓名
            /// </summary>
            public string StdName { get; set; }
            /// <summary>
            /// 学号
            /// </summary>
            public string StdCode { get; set; }
            /// <summary>
            /// 学期
            /// </summary>
            public string CalendarName { get; set; }
            /// <summary>
            /// 班级
            /// </summary>
            public string AdminClassName { get; set; }
            /// <summary>
            /// 总学分
            /// </summary>
            public int TotalCredits { get; set; }

            public IList<CourseActivity> Activity { get; set; }
            public IList<CourseTaskBrief> TaskBrief { get; set; }
        }

        public class CourseActivity{
            public int TeacherId { get; set; }
            public string TeacherName { get; set; }
            public int CourseId { get; set; }
            public string CourseName { get; set; }
            public int ClassroomId { get; set; }
            public string ClassroomName { get; set; }
            public string ValidWeeks { get; set; }
            public int SeqNo { get; set; }
            public IList<CourseActivityTime> CourseTime { get; set; }
        }
        public class CourseActivityTime
        {
            public int WeekDay { get; set; }
            public int Index { get; set; }

            public CourseActivityTime (int week, int index)
            {
                this.WeekDay = week;
                this.Index = index;
            }

        }
        public class CourseTaskBrief{
            public int CourseCode { get; set; }
            public int SeqNo { get; set; }
            public int TaskId { get; set; }
            public string TeacherName { get; set; }
            public string CourseName { get; set; }
            public string CourseType { get; set; }
            public int WeekUnits { get; set; }
            public int Credits { get; set; }
            public string FirstLessonDate { get; set; }
            public string IsPublic { get; set; }
            public string CourseLangType { get; set; }
            public int WeekStart { get; set; }
            public string Comments { get; set; }
        }
        #endregion

}
